Hinstance Property

Returns the instance handle of the instance that is calling Microsoft Excel. Read-only Long.

expression.Hinstance

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

In this example, Microsoft Excel notifies the user about the instance handle of the instance that is calling Excel.

Sub CheckHinstance()

    MsgBox Application.Hinstance

End Sub